INCLUDE=-I$(shell root-config --incdir) -I/opt/CAENVMELib-2.30.2/include
LIB=$(shell root-config --libs) -lpthread -lCAENVME
C=g++ -fPIC -std=gnu++0x# -g -O0

all: main

main: DAQRun
	$C -o bin/DAQ src/main.cpp build/DAQRun.o $(INCLUDE) $(LIB)
	
DAQRun:
	$C -c -o build/DAQRun.o src/DAQRun.cpp $(INCLUDE) $(LIB)
